package com.book.system.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.book.common.annotation.group.InsertGroup;
import com.book.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import javax.validation.constraints.NotBlank;

/**
 * @author Bigboss
 * @create 2024-11-10 13:49
 */
@ApiModel("反馈表")
@TableName("feed_back")
public class FeedBack extends BaseEntity {

    /**
     * 反馈id
     */
    @ApiModelProperty("反馈id")
    @TableId(value = "id",type = IdType.ASSIGN_ID)
    private String id;


    /**
     * 反馈用户ID
     */
    @ApiModelProperty("反馈用户ID")
    private String appUserId;

    /**
     * 反馈内容
     */
    @ApiModelProperty("反馈内容")
    @NotBlank(message = "请输入反馈内容",groups = {InsertGroup.class})
    private String content;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getAppUserId() {
        return appUserId;
    }

    public void setAppUserId(String appUserId) {
        this.appUserId = appUserId;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    @Override
    public String toString() {
        return "FeedBack{" +
                "id='" + id + '\'' +
                ", appUserId='" + appUserId + '\'' +
                ", content='" + content + '\'' +
                '}';
    }
}
